package cn.hfjava.pojo.cn.bdqn;

public class Carshow {
    public static void main(String[] args) {
        Driver driver =new Driver();
        Driver.Car car =new Driver.Car();
        driver.Drivershow();
        car.brand="宝马";
        car.displacement=4.0;
        car.oilAmount=1.2;
        car.seatCount=5;
        System.out.println("我的车名叫："+car.brand+",排量是："+car.displacement+"T," +
                "油耗是："+car.oilAmount+",座位数是："+car.seatCount+"位。");
        car.run();
        car.brake();
         car.speedUp();
         car.stop();

    }
}
